package com.wbf.demo.common;

import com.wbf.demo.security.exception.ErrorMsg;
import org.springframework.http.HttpStatus;

/**
 * @program: security_demo
 * @description: 异常
 * @author: guangdao
 * @create: 2022-04-14 18:27
 **/
public interface CommonErrorMsgs {
    public static final ErrorMsg SERVER_ERROR = new ErrorMsg(HttpStatus.INTERNAL_SERVER_ERROR, "10000", "服务器异常");
    public static final ErrorMsg NO_LOGIN = new ErrorMsg(HttpStatus.UNAUTHORIZED, "10001", "未登录");
    public static final ErrorMsg NO_FORBIDDEN = new ErrorMsg(HttpStatus.FORBIDDEN, "10002", "无操作权限");
    public static final ErrorMsg ILLEGAL_PARAM = new ErrorMsg(HttpStatus.BAD_REQUEST, "10003", "参数不合法");

}
